// pages/home-profile/index.js
import { getUserInfo } from '../../service/api_login'

Page({

  /**
   * 页面的初始数据
   */
  data: {
    userInfo:{}
  },

  handleGetUser: async function (event) {
    const userInfo = await getUserInfo()
    console.log(userInfo)
    this.setData({
      userInfo
    })
  },
  handleGetPhoneNumber: function (event) {
    console.log(event)
  }
})